<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>张恒强的博客</title>
  <%= stylesheet_link_tag 'http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css' %>
  <%= stylesheet_link_tag 'http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap-theme.min.css' %>
  <%= javascript_include_tag 'http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js' %>
  <%= javascript_include_tag 'http://cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js' %>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= stylesheet_link_tag 'admin/dashboard' %>
  <%= yield :special_script %>
  <!--[if lt IE 9]>
  <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
  <%= javascript_include_tag 'admin/ie10-viewport-bug-workaround' %>
<!--  <%= csrf_meta_tags %>-->
</head>
<body data-controller="<%= params[:controller] %>" data-action="<%= params[:action] %>">
<nav class="navbar navbar-inverse navbar-fixed-top">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">张恒强的博客</a>
    </div>
    <div id="navbar" class="navbar-collapse collapse">
      <ul class="nav navbar-nav navbar-right">
        <li><a href="#">Dashboard</a></li>
        <li><a href="#">Settings</a></li>
        <li><a href="#">Profile</a></li>
        <li><a href="#">Help</a></li>
      </ul>
      <form class="navbar-form navbar-right">
        <input class="form-control" placeholder="Search..." type="text">
      </form>
    </div>
  </div>
</nav>
<div class="container-fluid">
  <div class="row">
    <div class="col-sm-3 col-md-2 sidebar">
      <ul class="nav nav-sidebar">
        <li class=<%= 'active' if params[:controller] == 'admin/articles' %>><a href="<%= admin_articles_path %>"  data-method="get" >文章管理 <span class="sr-only">(current)</span></a></li>
        <li class=<%= 'active' if params[:controller] == 'admin/categories' %>><a href=<%= admin_categories_path %>  data-method="get" >分类管理</a></li>
        <li class=<%= 'active' if params[:controller] == 'admin/tags' %>><a href=<%= admin_tags_path %>  data-method="get" >标签管理</a></li>
      </ul>
    </div>
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
      <%= yield %>
    </div>
  </div>
</div>


</body>
</html>
